package sample;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.Random;

public class SampleArrays {

	int[] a = new int[5];
	int[][] m = new int[10][10];
	/**
	 * @param args
	 */
	
	public void arrayManip()
	{

		Random generator = new Random();
		ArrayList<Integer> al = new ArrayList();
		al.add(4);
		al.add(8);
		al.add(16);
		
		Iterator<Integer> iter = al.iterator();
		while(iter.hasNext())
		{
			int curr=iter.next();
			System.out.println(curr);
		}
		/*System.out.println(al);
		for(int x=0;x<m.length;x++)
		{
			for(int y=0;y<m[0].length;y++)
			{
				m[x][y]=generator.nextInt(9)+1;
				System.out.print(m[x][y]+" ");
			}
			System.out.println();
		}*/
		
		
		/*for(int i=0;i<a.length;i++)
		{
			a[i]=i;
			System.out.println(a[i]);
		}*/
	}
	
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		SampleArrays sa = new SampleArrays();
		sa.arrayManip();
		
	}

}
